const Lang = imports.lang;
const Signals = imports.signals;
const Mainloop = imports.mainloop;
+const Gettext = imports.gettext.domain('gnome-shell');
+const _ = Gettext.gettext;
const DND = imports.ui.dnd;
const GenericDisplay = imports.ui.genericDisplay;
_redisplayMenus: function() {
this._menuDisplay.remove_all();
- this._addMenuItem('Frequent', null, 'gtk-select-all');
+ this._addMenuItem(_("Frequent"), null, 'gtk-select-all');
for (let i = 0; i < this._menus.length; i++) {
let menu = this._menus[i];
this._addMenuItem(menu.name, menu.id, menu.icon, i+1);
const Shell = imports.gi.Shell;
const Signals = imports.signals;
const Lang = imports.lang;
+const Gettext = imports.gettext.domain('gnome-shell');
+const _ = Gettext.gettext;
const AppDisplay = imports.ui.appDisplay;
const DocDisplay = imports.ui.docDisplay;
border_color: SEARCH_BORDER_BOTTOM_COLOR });
this.pane = null;
- this._defaultText = "Find apps or documents";
+ this._defaultText = _("Find apps or documents");
let textProperties = { font_name: "Sans 12" };
let entryProperties = { editable: true,
let text = new Clutter.Text({ font_name: "Sans 12px",
color: BRIGHT_TEXT_COLOR,
- text: "Browse" });
+ text: _("Browse") });
this.actor.append(text, Big.BoxPackFlags.NONE);
this.actor.connect('button-press-event', Lang.bind(this, function (b, e) {
this._searchPane = new ResultPane(this);
this._searchPane.content.append(new Clutter.Text({ color: TEXT_COLOR,
font_name: 'Sans Bold 10px',
- text: "APPLICATIONS" }),
+ text: _("APPLICATIONS") }),
Big.BoxPackFlags.NONE);
this._searchAreaApps = this._searchPane.packResults(AppDisplay.AppDisplay, false);
this._searchPane.content.append(new Clutter.Text({ color: TEXT_COLOR,
font_name: 'Sans Bold 10px',
- text: "RECENT DOCUMENTS" }),
+ text: _("RECENT DOCUMENTS") }),
Big.BoxPackFlags.NONE);
this._searchAreaDocs = this._searchPane.packResults(DocDisplay.DocDisplay, false);
this._addPane(this._searchPane);
/***** Applications *****/
- let appsSection = new Section("APPLICATIONS");
+ let appsSection = new Section(_("APPLICATIONS"));
let appWell = new AppDisplay.AppWell();
appsSection.content.append(appWell.actor, Big.BoxPackFlags.EXPAND);
/***** Places *****/
- let placesSection = new Section("PLACES", true);
+ let placesSection = new Section(_("PLACES"), true);
let placesDisplay = new Places.Places();
placesSection.content.append(placesDisplay.actor, Big.BoxPackFlags.EXPAND);
this.sectionArea.append(placesSection.actor, Big.BoxPackFlags.NONE);
/***** Documents *****/
- let docsSection = new Section("RECENT DOCUMENTS");
+ let docsSection = new Section(_("RECENT DOCUMENTS"));
let docDisplay = new DocDisplay.DocDisplay();
docDisplay.load();
const Shell = imports.gi.Shell;
const Tweener = imports.ui.tweener;
const Signals = imports.signals;
+const Gettext = imports.gettext.domain('gnome-shell');
+const _ = Gettext.gettext;
const Button = imports.ui.button;
const Main = imports.ui.main;
/* left side */
- this.button = new Button.Button("Activities", PANEL_BUTTON_COLOR, PRESSED_BUTTON_BACKGROUND_COLOR,
+ this.button = new Button.Button(_("Activities"), PANEL_BUTTON_COLOR, PRESSED_BUTTON_BACKGROUND_COLOR,
PANEL_FOREGROUND_COLOR, true, DEFAULT_FONT);
this.button.button.height = PANEL_HEIGHT;
displayDate.setMinutes(displayDate.getMinutes() + 1);
msecRemaining += 60000;
}
- this._clock.set_text(displayDate.toLocaleFormat("%a %l:%M %p"));
+ /* Translators: This is a time format. */
+ this._clock.set_text(displayDate.toLocaleFormat(_("%a %l:%M %p")));
Mainloop.timeout_add(msecRemaining, Lang.bind(this, this._updateClock));
return false;
},
const Mainloop = imports.mainloop;
const Shell = imports.gi.Shell;
const Signals = imports.signals;
+const Gettext = imports.gettext.domain('gnome-shell');
+const _ = Gettext.gettext;
const Main = imports.ui.main;
let label = new Clutter.Text({ color: BOX_TEXT_COLOR,
font_name: '18px Sans',
- text: 'Please enter a command:' });
+ text: _("Please enter a command:") });
label.set_position(6, 6);
boxGroup.add_actor(label);
const Pango = imports.gi.Pango;
const Shell = imports.gi.Shell;
const Signals = imports.signals;
+const Gettext = imports.gettext.domain('gnome-shell');
+const _ = Gettext.gettext;
const DocInfo = imports.misc.docInfo;
},
_updateText: function(time) {
- this.actor.set_text(time.toLocaleFormat("%H:%M"));
+ // Translators: This is a time format.
+ this.actor.set_text(time.toLocaleFormat(_("%H:%M")));
},
_updateCairo: function(time) {
_init : function() {
Widget.prototype._init.apply(this, arguments);
- this.title = "Applications";
+ this.title = _("Applications");
this.actor = new Big.Box({ spacing: 2 });
this.collapsedActor = new Big.Box({ spacing: 2});
_init : function() {
Widget.prototype._init.apply(this, arguments);
- this.title = "Recent Documents";
+ this.title = _("Recent Documents");
this.actor = new Big.Box({ spacing: 2 });
this._recentManager = Gtk.RecentManager.get_default();